package com.rd.student.jike.class1.jiangwanli;

import java.util.Arrays;

public class TestShuZu {
    public static void main(String[] args) {
        int[] a = new int[]{1,3,5,7,9,11,13,15,17};
        for (int i = 0; i < a.length; i++){
            if (a[i] == 11){
                a[i] = a[i+1];
            }
            if (i > 5){
                a[i-1] = a[i];
                if (i == a.length-1){
                    a[i] = 0;
                }
            }

        }
        System.out.println(Arrays.toString(a));
    }
}
